/*
 SGEndGameViewController.m
 Date Created: March 26, 2010
 
 Authors: Frank Lau <flaua@sfu.ca> 
          Karanvir Gill <viper1029@gmail.com>
 
 Copyright (C) 2010 Green-Power
 
 URL: http://code.google.com/p/green-power
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 $Id$
 
 */

#import <UIKit/UIKit.h>

#import "SGSortingGame.h"


@interface SGEndGameViewController : UIViewController {

  IBOutlet UILabel *currentLevelLabel;            //shows the last level that the player managed to complete in the game 
  IBOutlet UILabel *levelAccuracyLabel;           //shows the sorting accuracy of the last level 
  IBOutlet UILabel *totalProcessedLabel;          //shows the total number of items that appeared in the entire game
	IBOutlet UILabel *totalCorrectlySortedLabel;    //shows the total number of items correctly sorted
  IBOutlet UILabel *totalScoreLabel;              //shows the total score earned in the game
	IBOutlet UILabel *levelScoreLabel;              //shows the score earned in the last level of the game
  IBOutlet UILabel *gameAccuracyLabel;            //shows the overall game accuracy
  
  SGSortingGame *sortingGame;  
}

/**
 * Constructor that takes in statistics attributes to be
 * displayed at the end game menu
 *
 * \param game The game to display information for
 * \return An instance of SGEndGameViewController with the appropriate vaules for 
 * attributes 
 */

- (SGEndGameViewController*)initWithGame:(SGSortingGame *)game;

/**
 *Goes to main menu after player hits the main menu button
 */
- (IBAction)goToMainMenu:(id)sender;

- (IBAction)viewProgressChart:(id)sender;


@end
